package com.bootx.config;

import dev.langchain4j.model.chat.ChatModel;
import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author black
 */
@Component
public class ChatModalConfig {

    @Bean("openAiChatModel1")
    public ChatModel openAiChatModel() {
        return OpenAiChatModel.builder()
                .apiKey("yUyo58hK1jDC7F6mF9Whg0fiSK3o4t1U5C5Ld7vd9Qo8d15I")
                .modelName("gpt-5-chat-latest")
                .baseUrl("https://api.yourouter.ai/v1")
                .build();
    }
}
